<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta content="no-cache" name="Cache-Control">
<meta name=viewport content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
<title>{$meta_title}</title>
<meta content="{$meta_keywords}" name="keywords" />
<meta content="{$meta_description}" name="description" />

<!-- 系统关键js(所有自建模板必须引用) -->
    <script type="text/javascript">var assets_path = '{ROOT_THEME_PATH}assets/';var is_mobile_cms = '1';</script>
    <script src="{LANG_PATH}lang.js" type="text/javascript"></script>
    <script src="{ROOT_THEME_PATH}assets/global/plugins/jquery.min.js" type="text/javascript"></script>
    <script src="{ROOT_THEME_PATH}assets/layer/layer.js" type="text/javascript"></script>
    <script src="{ROOT_THEME_PATH}assets/js/cms.js" type="text/javascript"></script>
    <!-- 系统关键js结束 -->

<link href="{HOME_THEME_PATH}mobile/css/style.css" type="text/css" rel="stylesheet" />

<script>
$(document).ready(function(){
  $("#dhmore").click(function(){
    $("#navlayer").slideToggle("slow");
	$(".arrowr").toggleClass("morex");
  });
  $(".guanbi").click(function(){
    $("#navlayer").slideUp("slow");
  });
});
</script>
</head>
<body>

{template "header.html"}
<div id="tabBox2" class="tabBox">
  <div class="wz">
    <h2>当前位置：  {dr_catpos($catid, '&gt;', true, '<a href="[url]">[name]</a>')} &gt; 正文 </h2>
  </div>
</div>  

<main>
  <section> 
  <h3 align="center" style=" padding:20px;line-height:30px;">{$title}</h3>
  <article class="pd10">
  <div class="info">发布时间:<time>{$updatetime}</time>&nbsp;浏览:{dr_show_hits($id)}次&nbsp;评论:{$comments}</div>
  <div class="ad_wap"><a href="/"></a></div>
  <div class="content">
    
  <div>
  
  {loop $images $i $c}
  <img layer-pid="{$i}" width="320" src="{dr_thumb($c.file, 320, 240, 0, 'width')}" alt="{$c.title}">
  <br />
  {/loop}
  
  {$content}
	
  </div>

  </article>
  </section>
</main>
<div class="">
{if IS_COMMENT}
{dr_module_comment(MOD_DIR, $id)}
{/if}
</div>
<div class="clear"></div>
<div class="tabBox">
  <div class="hd"><h2>相关文章<span>Related</span></h2></div>
  <div class="bd">
    <div class="con">
      <ul>
   {related module=photo tag=$tag num=8}
    <li> <a href="{$t.url}">{dr_strcut($t.title, 32)}</a></li>
   {/related}

      </ul>
    </div>
  </div>
</div>
<a class="readMore" href="javascript:history.back(-1)">返回栏目</a>
<div class="clear"></div>
<div style="padding:5px !important;">
<!-- UY BEGIN -->
{if IS_COMMENT}
{dr_module_comment(MOD_DIR, $id)}
{/if}
</div>
<!-- 效果导航 -->
{php $signPackage = \Phpcmf\Service::L('jssdk', 'weixin')->GetSignPackage();}
<script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<script>
    wx.config({
        debug: false,
        appId: '<?php echo $signPackage["appId"];?>',
        timestamp: <?php echo $signPackage["timestamp"];?>,
        nonceStr: '<?php echo $signPackage["nonceStr"];?>',
        signature: '<?php echo $signPackage["signature"];?>',
        jsApiList: ['onMenuShareTimeline', 'onMenuShareQQ', 'onMenuShareQZone', 'onMenuShareAppMessage']
    });
    wx.ready(function () {
        // 在这里调用 API
        wx.onMenuShareTimeline({
            title: '{$title}', // 分享标题
            desc: '{$description}', // 分享描述
            link: '{dr_now_url()}', // 分享链接
            imgUrl: '{dr_get_file($thumb)}', // 分享图标
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });
        wx.onMenuShareAppMessage({
            title: '{$title}', // 分享标题
            desc: '{$description}', // 分享描述
            link: '{dr_now_url()}', // 分享链接
            imgUrl: '{dr_get_file($thumb)}', // 分享图标
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });
        wx.onMenuShareQQ({
            title: '{$title}', // 分享标题
            desc: '{$description}', // 分享描述
            link: '{dr_now_url()}', // 分享链接
            imgUrl: '{dr_get_file($thumb)}', // 分享图标
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });
        wx.onMenuShareQZone({
            title: '{$title}', // 分享标题
            desc: '{$description}', // 分享描述
            link: '{dr_now_url()}', // 分享链接
            imgUrl: '{dr_get_file($thumb)}', // 分享图标
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });

    });
</script>

{template "footer.html"}